package com.kehong.pattern;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-07-23
 */
public class SingleTonDemo {
    public static void main(String[] args) {
        Singleton03 singleton01 = Singleton03.getInstance();
        Singleton03 singleton02 = Singleton03.getInstance();
        Singleton03 singleton03 = Singleton03.getInstance();
        Singleton03 singleton04 = Singleton03.getInstance();

        System.out.println(singleton01 == singleton02);
        System.out.println(singleton01 == singleton03);
        System.out.println(singleton01 == singleton04);
    }
}
